package com.remote.ui.component;

import com.remote.common.command.Commands;
import com.remote.common.model.Response;
import com.remote.ui.core.BaseControllerComponent;
import io.netty.channel.ChannelHandlerContext;

public class DPIComponent extends BaseControllerComponent {

    @Override
    protected void onRead0(ChannelHandlerContext ctx, Response response) {
        switch ((Commands) response.getCommand()) {
//            case MODIFY_DPI:
//                JFrame frame = new JFrame();
//                GraphicsDevice device = GraphicsEnvironment.getLocalGraphicsEnvironment()
//                        .getDefaultScreenDevice();
//                device.setFullScreenWindow(frame);
//
//                DisplayMode displayMode = (DisplayMode) response.getValue();
//                device.setDisplayMode(displayMode);
//
//                break;
            default:
                break;
        }
    }
}
